package com.gu.service;

import com.github.pagehelper.PageInfo;
import com.gu.VO.ServerResponse;
import com.gu.entity.LeavingMessageDO;
import com.gu.resultMap.LeavingMessageWithAreaCode;

import java.util.List;

/**
 * @ProjectName: apartment-management-center
 * @Package: com.gu.service
 * @ClassName: LeavingMessageService
 * @Author: gusongliao
 * @Description: 留言服务层
 * @createDate 2021/04/04 15:49
 */
public interface LeavingMessageService {

    PageInfo getLeavingMessageBySearchParam(Integer pageNum, Integer pageSize, String searchParam, String searchDate);

    List<LeavingMessageWithAreaCode> getRecord(String searchParam, String searchDate);

    ServerResponse insertLeavingMessage(LeavingMessageDO leavingMessageDO);

    LeavingMessageDO getById(Integer id);

    ServerResponse deleteByIds(Integer[] ids);

    ServerResponse getRecordByAreaCode(String areaCode);

    ServerResponse deleteLeavingMsg(LeavingMessageDO leavingMessageDO);

}
